
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("旺财",2);
        dog.run();
        dog.swimming();
        Bird bird=new Bird("布谷",1);
        bird.run();
        bird.fly();
    }
}
